<%@page import="com.itwill.ecom.product.ProductBeans"%>
<%@page import="java.util.List"%>
<%@page import="com.itwill.ecom.product.ProductServiceImpl"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<h1>상품 전체리스트</h1>
<%
	WebApplicationContext webContext=WebApplicationContextUtils.getWebApplicationContext(application);
	ProductServiceImpl productService=(ProductServiceImpl)webContext.getBean("productService");
	
	List<ProductBeans> getAll = productService.getProductAll();
	
	for(ProductBeans beans : getAll){
		
	
%>
<%= beans.getProduct_no()%> / <%= beans.getProduct_name() %> / 
<%= beans.getProduct_category() %> / <%= beans.getProduct_company() %> / 
<%= beans.getProduct_price() %>
<br/>

<% 
	}
	
%>